<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'dispatchtask-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'taskname'); ?>
		<?php echo $form->textField($model,'taskname',array('size'=>7,'maxlength'=>7)); ?>
		<?php echo $form->error($model,'taskname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'shortdescription'); ?>
		<?php echo $form->textField($model,'shortdescription',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'shortdescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'timemin'); ?>
		<?php echo $form->textField($model,'timemin',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'timemin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'longdescription'); ?>
		<?php echo $form->textArea($model,'longdescription',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'longdescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'skill'); ?>
		<?php echo $form->textField($model,'skill',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'skill'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dispatch'); ?>
		<?php echo $form->textField($model,'dispatch',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'dispatch'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->getSubmitButtonText(),array('disabled'=>($model->lockby!=NULL && $model->lockby!=Yii::app()->user->name)?'disabled':NULL,)); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->